<?php

class Default_Form_Query extends Zend_Form
{
    public function init()
    {
        // Set the method for the display form to POST
        $this->setMethod('post');


        // Add the comment element
        $this->addElement('text', 'query', array(
            'label'      => 'Query:',
            'required'   => true,
        ));

        // Add the submit button
        $this->addElement('button', 'doQuery', array(
            'ignore'   => true,
            'label'    => 'Query',
        ));

        // And finally add some CSRF protection
        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
        ));
    }
}
